package org.jeecg.modules.zcgl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.zcgl.entity.Region;

import java.util.List;
import java.util.Map;

/**
 * @Description: 区域信息
 * @Author: jeecg-boot
 * @Date:   2020-08-11
 * @Version: V1.0
 */
public interface RegionMapper extends BaseMapper<Region> {

	/**
	 * 根据区域编码获取区域下所有IDS
	 * @param orgCodes
	 * @return
	 */
	List<String> getSubDepIdsByOrgCodes(@Param("orgCodes") String[] orgCodes);

	List<Region> listByUserId(@Param("par") Map<String, Object> par);
}
